/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.nViron;

import org.nViron.nvCommon.nvPosition;
import org.nViron.nvData.nvDataEntity;
import org.nViron.nvData.nvDataEntityMgr;
import org.nViron.nvParams.nvContextParamMgr.CONTEXTPARAM;

/**
 *
 * @author Roland
 */
public class SimpleDataEntity extends nvDataEntity {

    private nvPosition position;

    public SimpleDataEntity(nvDataEntityMgr entityMgr, nvPosition position) {
        super(entityMgr);
        this.position = position;
        updateAllContextValues();
    }

    @Override
    public nvPosition getPosition() {
        return position;
    }

    @Override
    public void update(float timestep2) {
    }

    public float calculateContextValue(CONTEXTPARAM param) {
        return (float) Math.random();
    }
}
